package com.contory.ssn_lgnd.app.maingame;

import com.contory.ssn_lgnd.app.Assets;
import com.contory.ssn_lgnd.app.comp.DrawPtr;
import com.contory.ssn_lgnd.app.comp.ViewObject;
import com.contory.ssn_lgnd.framework.gl.SpriteBatcher;

public class SkyBackGround implements DrawPtr{
	ViewObject bodyView;
	float maxY;
	public SkyBackGround(float maxY, float x, float y, float w, float h){
		bodyView = new ViewObject();
		bodyView.setXY_WH_TR(x, y, w, h, Assets.tex2_reg_whiteTexel);
		this.maxY = maxY;
	}
	
	@Override
	public void draw(SpriteBatcher batcher) {
		batcher.drawSprite(bodyView.x, bodyView.y, bodyView.w, bodyView.h, 0, 0.4314f, 0.4784f, 1.0f, bodyView.tr);
	}
	
	public float getRelativeH(){
		return bodyView.y / maxY;
	}
}
